package top.laoshuzi.designpatterns.base.structure.decorator;

import org.junit.Test;

public class Client {

    @Test
    public void operation() {
        Component component = new ConcreteComponent();

        Decorator decoratorA = new ConcreteDecoratorA(component);
        Decorator decoratorB = new ConcreteDecoratorB(component);

        decoratorA.operation();
        decoratorB.operation();
    }
}
